export namespace util{
    export function getHollowSquareTS(length:number,hollowLength:number,sizeUnitFactor?:number,offset?:Type.Vector2):{bottom:Type.Vector4, left:Type.Vector4, right:Type.Vector4, top:Type.Vector4} {
        let tileWide = (length - hollowLength) / 2
        let tileHigh = length - tileWide
        let sizeFactor = sizeUnitFactor || 1
        let tileScaledWide = tileWide / sizeFactor
        let tileScaledHigh = tileHigh / sizeFactor
        let squareOffset = offset || Type.Vector.zero
        return {
            bottom: new Type.Vector4(tileHigh / 2 + squareOffset.x, tileWide / 2 + squareOffset.y, tileScaledHigh, tileScaledWide),
            left: new Type.Vector4(tileWide / 2 + squareOffset.x, tileWide + tileHigh / 2 + squareOffset.y, tileScaledWide, tileScaledHigh),
            right: new Type.Vector4(tileHigh + tileWide / 2 + squareOffset.x, tileHigh / 2 + squareOffset.y, tileScaledWide, tileScaledHigh),
            top: new Type.Vector4(tileWide + tileHigh / 2 + squareOffset.x, tileHigh + tileWide / 2 + squareOffset.y, tileScaledHigh, tileScaledWide),
        }
    }
}